package com.victualler.product.department.dto;

import com.victualler.core.common.annotation.ListPageQuery;
import com.victualler.core.common.annotation.SimpleQueryFrom;
import com.victualler.core.common.annotation.SimpleQueryWhere;
import com.victualler.core.common.enums.ColumnFormatEnum;
import com.victualler.core.common.enums.LinkType;

import java.io.Serializable;

/**
 * @author Guoshichang
 * @since 21:40 on 2018/10/2.
 */
@SimpleQueryFrom(value = "department DepartmentDao")
public class DepartmentRequestDto implements Serializable {

    //机构代码
    @SimpleQueryWhere(specialName = "DepartmentDao.deptNo",linkType = LinkType.LIKE)
    @ListPageQuery(title = "仓库编号")
    private String deptNo;

    //机构名称
    @SimpleQueryWhere(specialName = "DepartmentDao.name",linkType = LinkType.LIKE)
    @ListPageQuery(title = "仓库名称")
    private String name;

    @SimpleQueryWhere(specialName = "DepartmentDao.state")
    @ListPageQuery(title = "状态",type = ColumnFormatEnum.DICT,dictCodeType = "EntityState")
    private String state;


    public String getDeptNo() {
        return deptNo;
    }

    public void setDeptNo(String deptNo) {
        this.deptNo = deptNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
